<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            padding: 20px;
            background: #fff;
        }

        .container {
            /* max-width: 800px; */
            width: 100%;
            margin: 0 auto;
        }

        .section-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #333;
        }

        .form-input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

        .form-input::placeholder {
            color: #999;
        }

        .input-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .button {
            padding: 8px 16px;
            background: #5048e5;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-left: 10px;
            min-width: 4%;
        }

        .toggle-switch {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .switch {
            position: relative;
            width: 40px;
            height: 20px;
            background: #ccc;
            border-radius: 10px;
            cursor: pointer;
            margin-left: 10px;
        }

        .switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s;
        }

        .switch.active {
            background: #1a73e8;
        }

        .switch.active::after {
            transform: translateX(20px);
        }

        .directory-path {
            padding: 8px;
            background: #f5f5f5;
            border-radius: 4px;
            color: #666;
            margin-bottom: 20px;
        }

        .cache-section {
            margin-top: 30px;
        }

        .cache-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }

        .clear-button {
            padding: 4px 12px;
            background: #ff4444;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .cache-info {
            color: #666;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2 class="section-title">导入字体</h2>

        <div class="form-group">
            <label class="form-label">字体名称:</label>
            <input type="text" class="form-input">
        </div>

        <div class="form-group">
            <label class="form-label">选择字体文件:</label>
            <div class="input-group">
                <input type="text" class="form-input" placeholder="请选择字体文件 *.ttf *.otf *.ttc">
                <button class="button">导入</button>
            </div>
        </div>

        <div class="toggle-switch">
            <span>任务日志</span>
            <div class="switch"></div>
        </div>

        <div class="form-group">
            <label class="form-label">保存目录</label>
            <div class="directory-path">C:\Users\Administrator\Downloads\aimix_save</div>
        </div>

        <div class="cache-section">
            <h3 class="section-title">缓存管理</h3>
            
            <div class="cache-item">
                <span class="cache-info">算法合成缓存</span>
                <button class="clear-button">清除</button>
            </div>

            <div class="cache-item">
                <span class="cache-info">AI视频理解短存存（0条缓存数据）</span>
                <button class="clear-button">清除</button>
            </div>
        </div>
    </div>
</body>
</html> 